import SysDicApi from "../api/webPath/SysDicApi";

export function useSysDicList(type:string){
    const enumList = ref([])
    onMounted(async ()=>{
      const data = (await SysDicApi.searchByType({ dicClass:type })).data
      console.log("dic data",data)
      enumList.value = data?.map((x:any)=>({value:x.dicClassType,label:x.dicClassTypeName}));
    })

    return enumList
}